import { EducationType, GenderType, ShowType } from '@/enums/constEnums'

/**
 * @description 获取来用户分析-性别年龄学历分布数据
 */
export interface GenderAgeEducationInterfaceRes {
  type?: ShowType
  // 性别
  gender: GenderType
  // 年龄
  age: number
  // 学历
  educationType: EducationType
}
/**
 * @description 获取用户分析-兴趣指数数据
 */
export interface InterestIndexInterfaceRes {
  type?: ShowType
  data: {
    label: string
    value: number
  }[]
}
/**
 * @description 获取用户分析-地域分布数据
 */
export interface RegionalDistributionInterfaceRes {
  type?: ShowType
  data: {
    name: string
    value: number
    percent?: number
  }[]
}
/**
 * @description 获取用户分析-浏览器数据
 */
export interface BrowserInterfaceRes {
  type?: ShowType
  data: {
    name: string
    value: number
    percent?: number
  }[]
}
/**
 * @description 获取用户分析-主要功能
 */
export interface MainFeaturesInterfaceRes {
  type?: ShowType
  data: {
    name: string
    value: number
    percent?: number
  }[]
}
/**
 * @description 获取用户分析-热门功能
 */
export interface HotFeaturesInterfaceRes {
  type?: ShowType
  data: {
    name: string
    value: number
    percent?: number
  }[]
}
/**
 * @description 获取用户分析-页面分析
 */
export interface PageAnalysisInterfaceRes {
  type?: ShowType
  data: PageAnalysisInterface[]
}
export interface PageAnalysisInterface {
  page: string
  pv: number
  entranceCount: number
  downstreamPv: number
  exitCount: number
  avgVisitTime: number
}
